package com.datechange.demo.controller;

import com.datechange.demo.entity.CmsChannelComparison;
import com.datechange.demo.service.CmsChannelComparisonService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * (CmsChannelComparison )表控制层
 *
 * @author makejava
 * @since 2020-12-14 10:20:09
 */
@Controller
@RequestMapping("cmsChannelComparison")
public class CmsChannelComparisonController {
    /**
     * 服务对象
     */
    @Resource
    private CmsChannelComparisonService cmsChannelComparisonService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public CmsChannelComparison selectOne(String id) {
        return this.cmsChannelComparisonService.queryById(id);
    }

}